package com.aaa.test;

import com.aaa.utils.JwtUtil;

/**
 * @author : luoBo
 */
public class JwtTest001 {
    public static void main(String[] args) {

        String initKey = JwtUtil.generateToken("123456");
        System.out.println(initKey);
        String username = JwtUtil.extractUsername(initKey);
        System.out.println("username = " + username);
        Boolean b = JwtUtil.validateToken("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTYiLCJpYXQiOjE3NDY3MDgyMTMsImV4cCI6MTc0NjcwODI3M30.XDpOILkG9E1cqCFL-Cid3Lq27-uNcPIvHdhnMlAR2Ao", username);
        System.out.println("b = " + b);
    }
}
